package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.CountryDao;
import com.ericom.model.Country;
import com.ericom.service.CountryManager;

@Service("countryManager")
public class CountryManagerImpl extends GenericManagerImpl<Country, Long>
		implements CountryManager {

	private CountryDao countryDao;

	@Autowired
	public CountryManagerImpl(CountryDao countryDao) {
		super(countryDao);
		this.countryDao = countryDao;
	}

	@Override
	public List<Country> findByName(String name) {
		
		return countryDao.findByName(name);
	}

}
